package com.hongye.broker.service.impl;

import com.hongye.broker.mapper.AfficheMapper;
import com.hongye.broker.service.AfficheService;
import com.hongye.common.entity.AfficheEntity;
import com.hongye.common.response.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class AfficheServiceImpl implements AfficheService {
    @Autowired
    private AfficheMapper afficheMapper;



    @Override
    public ResponseResult list() {
        List<AfficheEntity> list = afficheMapper.list();
        HashMap<String, Object> map = new HashMap<>();
        map.put("list",list);
        return new ResponseResult(1,"查询成功",map);
    }
}
